package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.CustomerTagListReqDto;
import com.emm.yixun.common.app.CustomerTagListResDto;
import com.emm.yixun.customer.service.CustTagServiceFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.QueryCustomerTagReqVo;

/**
 * ClassName:QueryCustomerQuestionnaireListHander <br/>
 * Date:     2018年3月22日 上午10:50:00 <br/>
 * @author   junze.liu
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */
@Service("queryCustomerQuestionnaireListHander")
public class QueryCustomerQuestionnaireListHander extends CommonAbstractHander{

	@Autowired
	private CustTagServiceFacade custTagServiceFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		QueryCustomerTagReqVo req = (QueryCustomerTagReqVo) reqDto;
		CustomerTagListReqDto reqDto1 = req.getParams();
		BaseResponseDTO<CustomerTagListResDto> res = new BaseResponseDTO<CustomerTagListResDto>();
		res.setResData(custTagServiceFacade.getCustomerQuestionnairePage(reqDto1));
		return res;
	}

}

